//widget is the main class that all gui elements will derive from
function widget()
{
	this.position = {"x":0,"y":0};
	this.size = {"width":10,"height":10};
	this.id = globalEventObject.screen.luid++; //get an unique id for element and increase the id bye one
	this.backgroundColor = "#FFF"; //default white
	this.textFontFamily = "verdana";
	this.textFontSize = "12";
	this.zindex = 5;
	this.isMouseOver = false;
	
	this.sectionPlaces = new Array();
	
	this.setPosition = function(x,y)
	{
		this.position.x = x;
		this.position.y = y;
	}
	
	this.setSize = function(width,height)
	{
		this.size.width = width;
		this.size.height = height;
	}
	
	
	
}

widget.prototype = new eventHandlerObject;
widget.prototype.constructor=widget;